package com.lzs.baseruku.feign;

import com.lzs.entity.Stock;
import com.lzs.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "kunei-kuncun-service")
public interface StockFeign {
    @PostMapping("/kucun/stock/addStock")
    public R addStock(@RequestBody Stock stock);
    @PostMapping("/kucun/stock/reduceStock")
    public R reduceStock(@RequestBody Stock stock);
}
